using System.IO;

using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;

using Pronghorn.Core;

namespace ViewEngine_Tests
{
	[TestFixture]
	public class MetaTag_Test
	{
		#region Public Methods

		[Test]
		public void When_Render_is_called_should_write_a_meta_tag_to_the_textWriter()
		{
			var tag = new MetaTag("Description", "The site description.");
			var writer = new StringWriter();
			tag.Render(writer);

			const string result = "<meta name=\"Description\" value=\"The site description.\"/>\r\n";
			Assert.That(writer.ToString(),Is.EqualTo(result));
		}

		#endregion Public Methods
	}
}